package com.gaofei.service.impl;

import java.util.List;

import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import com.gaofei.dao.CatMapper;
import com.gaofei.domain.Category;
import com.gaofei.service.CatService;
@Service
public class CatServiceImpl implements CatService {

	@Autowired
	CatMapper catMapper;
	
	@Override
	public List<Category> getTree(Integer parentId) {
		return catMapper.getTree(parentId);
	}

	@Override
	public void addCat(Category category) {
		catMapper.addCat(category);
	}

	@Override
	public void update(Category category) {
		catMapper.update(category);
	}

	@Override
	public void delCat(Category category) {
		catMapper.delCat(category);
	}

}
